package cn.kgc.service.Impl;

import cn.kgc.mapper.UserMapper;
import cn.kgc.pojo.User;
import cn.kgc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userService")
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User login(String code, String password) {
        User user = new User(code,password);
        return userMapper.selectOne(user);
    }
}
